package com.asj.house.client;

import com.asj.house.config.feign.HouseRoomRecommendFeignConfig;
import com.asj.house.returns.RespEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "houseRoomRecommendClient", url = "${manage.url}", configuration = HouseRoomRecommendFeignConfig.class)
public interface HouseRoomRecommendClient {

    /**
     * 获取推荐房源列表信息
     * @return
     */
    @GetMapping("/house-room-recommend/list")
    RespEntity getHouseRoomRecommend();

    /**
     * 编辑房源推荐
     * @param json
     * @param index
     * @return
     */
    @PutMapping("/house-room-recommend/update")
    RespEntity updateHouseRoomRecommend(@RequestParam(value = "json", required = true) String json,
                                        @RequestParam(value = "index", required = true) Integer index);
}
